package com.wm.visitor;

import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Date;

/**
 * @ClassName: CEOVisitor
 * @Description: 访问者-CEO
 * @Author: WM
 * @Date: 2023/5/18 9:49
 */
public class CEOVisitor implements Visitor {
    private final static Logger logger = LoggerFactory.getLogger(CEOVisitor.class);

    @Override
    public void visit(ProjectElement element) {
        logger.info("CEO Visitor Element");
        element.signature("CEO", new Date());
        logger.info(JSON.toJSONString(element));
    }
}
